#!/usr/bin/env python
# coding=UTF-8
'''
@Description: 
@Author: elescant
@LastEditors: elescant
@Date: 2019-04-02 16:03:12
@LastEditTime: 2019-04-02 18:07:50
'''
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import numpy as np

fig = plt.figure()

#对其中一版块进行设置
ax = fig.add_subplot(1,2,2)
ax.plot([1,2,3,4],[2,3,4,5])
ax.set_title('axes title')
ax.set_xlabel('X')
ax.set_ylabel('y')

dates,close = np.loadtxt('sj.csv',delimiter=',',unpack=True)#,converters={0:mdates.strpdate2num('%Y-%m-%d')})
ax.plot(dates,close)

fig.suptitle('Curve',fontsize=14,fontweight='bold')

plt.show()
